import { createWebHistory } from "vue-router";
import { createRouter } from "vue-router";
import HomeView from '../View/HomeView.vue';

const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: '/',
            component: HomeView
        },
        {
            path: '/Home',
            name: 'home',
            component: HomeView
        },
        {
            path: '/About',
            name: 'about',
            component: () => import('../View/AboutView.vue')
        },
        {
            path: '/User',
            name: 'user',
            component: () => import('../View/UserView.vue')
        }
    ]
})

export default router